<html>
<head>
 
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
<script>

</script>
</head>
<body>
<!-- cookie is : <?=get_cookie('lang')?><BR> -->
<? if($context): ?>
		<?=$context['title']?><BR>
		<?=$context['description']?><BR>
<? endif; ?>
<SELECT NAME="language" onchange="window.location.href='http://localhost/hotelbooking/index.php/genlang/gen_lang/'+ window.location.href.replace('http://', '').replace(/\//gi,'-') + '_' +this.value;">
	<? for($i=0; $i<count($lang); $i++): ?>
			<OPTION VALUE="<?=$lang[$i]->lang_name?>" <? if ($lang[$i]->lang_name==get_cookie('lang')) echo 'selected'; ?>><?=$lang[$i]->lang_name?>
	<? endfor; ?>
</SELECT>
<BR>
<?php if (!$registed): ?>
		<A HREF="http://<?=$_SERVER['HTTP_HOST'].'/hotelbooking/index.php/signup'.$customer?>"><?=$context['txt_signup']?></A><BR>
		<A HREF="http://<?=$_SERVER['HTTP_HOST'].'/hotelbooking/index.php/signup'.$hotel?>"><?=$context['txt_signup_hotel']?></A><BR>
		<?php if ($typeUser != ''): ?>
				<BR><h1><?=$typeUser?></h1><BR>
				<?php if ($user_dup != ''): ?>
						<?=$user_dup?><BR>
				<?php endif; ?>
				<?php echo validation_errors(); ?>
				<form method="post" action="http://<?=$_SERVER['HTTP_HOST'].'/hotelbooking/index.php/signup/register'?>">
						<TABLE>
								<tr>
									<td><INPUT TYPE="text" NAME="username" value="User Name" size="50"></td>
								</tr>
								<TR>
									<INPUT TYPE="hidden" NAME="typeUser" value="<?=$typeUser?>">
									<TD><INPUT TYPE="text" NAME="Fname" value="First Name" size="50"></TD>
									<TD><INPUT TYPE="text" NAME="Lname" value="Last Name" size="50"></TD>
								</TR>
								<TR>
									<TD><INPUT TYPE="text" NAME="email" value="Email Address" size="50"></TD>
									<?php if ($typeUser == 'Hotel'): ?>
											<TD><INPUT TYPE="text" NAME="HotelName" value="Hotel Name" size="50"></TD>
									<?php endif; ?>
								</TR>
								<TR>
									<TD>Password</TD><TD>Confrim Password</TD>
								</TR>
								<TR>
									
									<TD><INPUT TYPE="password" NAME="password" value="Password" size="50"></TD>
									<TD><INPUT TYPE="password" NAME="passconf" value="Password" size="50"></TD>
								
								</TR>
								<tr>
									<td  colspan="2" style="text-align:center;"><INPUT TYPE="submit" value="Sign Up" name="signup"></td>
								</tr>
						</TABLE>
				</form>
		<?php endif; ?>
<?php else: ?>

				<h3>Thank you for register !!!</h3><BR>
	
		<form method="post" action="http://<?=$_SERVER['HTTP_HOST'].'/hotelbooking/index.php/login'?>">
				User Name : <INPUT TYPE="text" NAME="username" size="40"><BR>
				Password    : <INPUT TYPE="password" NAME="password" size="40"><BR>
				<INPUT TYPE="submit" name="login" value="Login">
		</form>
<?php endif; ?>
</body>
</html>

